<?php
/**
 * 用户登录验证
 */

namespace app\index\validate;

class LoginValidate extends BaseValidate {
    protected $rule = [
        'username'     => 'require',
        'password'   => 'require',
        'password1'   => 'require',
        'token'   => 'require',
        'content'   => 'require',
    ];

    protected $message=[
        'username' => '请输入用户名',
        'password' => '请输入密码',
        'password1' => '请输入确认密码',

        'token' => '参数token不能为空',
        'content' => '内容不能为空',
    ];

     protected $scene = [
        'login'  =>  ['username','password'],
        'reg'  =>  ['username','password','password1'],
        'refreshToken'  =>  ['token'],
        'feedback'  =>  ['content'],
    ];
}